package org.eclipse.gittab.fretboard.draw2d.figures;

import org.eclipse.draw2d.Polygon;
import org.eclipse.draw2d.geometry.PointList;

public class ModernFretInlayFigure extends Polygon {

	public ModernFretInlayFigure(FretInlay inlay) {

		setOpaque(true);
		setVisible(true);
		setFill(true);
		setPoints(inlay.getPointList());

		// maybe another way would be to specify only one point list and then
		// rotate it at
		// the draw method. Maybe worth a change in future.
	}

	/**
	 * Interface for retrieving the point list for the Polygon.
	 * 
	 * @author mtreitle
	 * 
	 */
	public interface FretInlay {

		public static final int SPACE_X = 10;
		public static final int SPACE_Y = 15;
		public static final int APT = 7;

		public PointList getPointList();
	}
}
